" Vim syntax file
" Language:	
" Maintainer:
" Last Change:	

" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
  finish
endif

let s:cpo_save = &cpo
set cpo&vim

syn sync minlines=40

"+ls
syntax region lsemphasis_1 start=/"/ skip=/\v\\./ end=/["(\n)]/ oneline
syntax region lsemphasis_2 start=/ '/ skip=/\v\\./ end=/['\n]/ oneline
syntax region lsemphasis_3 start=/\[/ skip=/\v\\./ end=/\]/ oneline

syntax region lsline_1 start=/^>/ end=/\n/ contains=lsemphasis_1,lsemphasis_2
syntax region lsline_2 start=/^->/ end=/\n/ contains=lsemphasis_1,lsemphasis_2
syntax region lsline_3 start=/^+ls/ end=/\n/
syntax region lsline_3 start=/^r>/ end=/\n/
syntax region lsline_4 start=/^!>/ end=/\n/

syntax region lsoutline_3 start=/^/ end=/\({{{[3-9]\)\@=/ oneline
syntax region lsoutline start=/^/ end=/\({{{[0-2]\)\@=/ oneline
" for .org files;
syntax region lsoutline start=/^\* / end=/\n/ oneline
syntax region lsoutline_3 start=/^\*\* / end=/\n/ oneline

syntax region lsarea start=/<</ skip=/\v\\./ end=/>>/

syn match lsurl `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' 	<>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' 	<>"]+)[a-zA-Z0-9/]`

"syn match lstest /\({{{[a-z]\)\@=/
"syntax region lstest start=/^/ end=/\({{{[a-z]\)\@=/ oneline
"hi def link lstest String

highlight link lsemphasis_1 WarningMsg
highlight link lsemphasis_2 WarningMsg
highlight link lsemphasis_3 Search
highlight link lsline_1	    Type
highlight link lsline_2	    Comment
highlight link lsline_3	    WarningMsg
highlight link lsline_4	    Search
highlight link lsarea	    Function
highlight link lsoutline    UnderLined
highlight link lsoutline_3  Statement
hi def link lsurl	Special

let b:current_syntax = "txt"

let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8 sw=2
